layui.use('upload', function () {
    var upload = layui.upload;
    //执行实例
    var uploadInst = upload.render({
        elem: '#img_upload', //绑定元素
        url: '/common/sysFile/upload', //上传接口
        size: 51200,
        accept: 'file',
        done: function (r) {
            // 加载完成执行
            $("#logo").html("<img src='" + r.fileName + "' style='width:80px;height:80px;'>");
            $("#imgurl").val(r.fileName);
            layer.msg(r.msg);
        },
        error: function (r) {
            layer.msg(r.msg);
        }
    });
});